<ui:composition template="/WEB-INF/templates/templateLogin.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

	<ui:define name="conteudo">
		<p>Por favor autenticar o usuário de acesso</p>
		<h:form id="form">
			<h:panelGrid columns="2">
				<p:outputLabel value="Usuário: " for="user" />
				<p:inputText id="user" value="#{autenticadorBean.usuarioCPF}"/>

				<p:outputLabel value="Senha: " for="password" />
				<p:password value="#{autenticadorBean.senha}" id="password" />

			</h:panelGrid>
			
			<p:commandButton value="Entrar" action="#{autenticadorBean.autentica}" update="form"/>
		</h:form>
		<h:messages/>
	</ui:define>
</ui:composition>